﻿<%@ Page Language="C#" Inherits="E.Web.training.internals.exam.course.List" %>
<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>课程考试</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_exam.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript">
    function ConfirmStart(v) {
      if (confirm('确定要选择开始该课程考试吗？')) {
            document.getElementById("ExamLink_" + v).href = "/training/exam/Test.aspx?examid=" + v + "&cid=1";
      } else {
            return;
      }
    }
    function SelfConfirmStart(v) {
        if (confirm('确定要选择开始该课程自测吗？')) {
            document.getElementById("ExamSelfLink_" + v).href = "/training/exam/TestSelf.aspx?examid=" + v + "&cid=1";
        } else {
            return;
        }
    }
  </script>
  <style type="text/css">
    #attention p{ margin:6px 0; }
    #attention ul{ margin:0 0 0 20px; *margin:0 0 0 22px; _margin:0 0 0 22px; }
    #attention ul li{ list-style-type:decimal; line-height:150%; }
    #attention a:link{ color:#8c0000; font-weight:bolder; text-decoration:none; }
    #attention a:visited{ color:#8c0000; font-weight:bolder; text-decoration:none; }
    #attention a:hover{ color:#090; font-weight:bolder; text-decoration:underline; }
  </style>
</head>
<body>
  <form id="form1" action="" method="post">
    <div class="block">
      <div style="width:650px; height:22px;">
        <img alt="" src="/images/training/icon/pencil_3.gif" class="fl" />
        <div class="title">&nbsp;课程考试说明</div>
      </div>
      <div class="spe_line_2"></div>
      <div style="margin-top:10px;">
        <div id="attention" style="width:645px; display:table;">
          <ul>
            <li>考试结束后请认真填写意见反馈表，帮助我们进一步提高教学质量。</li>
            <li>请注意试题框右上角的倒计时，考试时间结束，系统会自动提交考卷。</li>
            <li>题目分不定项选择和判断题，每题2分，满分50分，45分通过。</li>
          </ul>
          <p>祝您考试顺利！</p>
        </div>
      </div>
      <div style="width:650px; height:22px; margin-top:10px;">
        <img alt="" src="/images/training/icon/pencil_3.gif" class="fl" />
        <div class="title">&nbsp;参加课程考试</div>
      </div>
      <div class="spe_line_2"></div>
      
      <% if (list != null && list.Count > 0) { %>
      <div id="examdatatable">
        <div class="e_rows" style="font-weight:bolder;">
          <div class="e_r_en">试卷名称</div>
          <div class="e_r_n">课程名称</div>
          <div class="e_r_t">有效时间</div>
          <div class="e_r_s">自测</div>
          <div class="e_r_s">开始</div>
        </div>
      
        <% foreach (ShortExamInfoModel model in list) { %>
        <div class="e_rows">
          <div class="e_r_en"><%=model.Title %></div>
          <div class="e_r_n"><%=model.CourseName %></div>
          <div class="e_r_t"><%=model.StartTime.ToString("yyyy.MM.dd") %> - <%=model.EndTime.ToString("yyyy.MM.dd") %></div>
          <div class="e_r_s"><a id="ExamSelfLink_<%=model.ID %>"" onclick="SelfConfirmStart(<%=model.ID %>);" target="Exam"><img alt="" src="/images/training/icon/pencil_s.gif" style="margin-top:5px;" class="cursor" /></a></div>
          <div class="e_r_s"><a id="ExamLink_<%=model.ID %>" onclick="ConfirmStart(<%=model.ID %>);" target="Exam"><img alt="" src="/images/training/icon/pencil_s.gif" style="margin-top:5px;" class="cursor" /></a></div>
        </div>
        <% } %>
        
      </div>
      <input type="hidden" id="ExIDValue" name="ExIDValue" value="-1" />
      
      <% } %>
    </div>
  </form>
</body>
</html>
